package com.tyj.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.common.utils.PageUtils;
import com.tyj.common.utils.R;
import com.tyj.gulimall.member.entity.MemberEntity;
import com.tyj.gulimall.member.vo.SocialUser;
import com.tyj.gulimall.member.vo.UserLoginVo;
import com.tyj.gulimall.member.vo.UserRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author tanyoujie
 * @email 983629093@qq.com
 * @date 2021-02-09 22:27:24
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(UserRegistVo vo);


    /**
     * 普通用户登录
     * @param vo
     * @return
     */
    MemberEntity login(UserLoginVo vo);

    /**
     * 社交用户登录
     * @param socialUser
     * @return
     */
    MemberEntity login(SocialUser socialUser) throws Exception;
}

